/*
 * @Description: 引入mock.js及配置文件
 * @Author: MrGao
 * @LastEditors: Please set LastEditors
 * @Date: 2019-03-12 10:35:08
 * @LastEditTime: 2019-03-12 10:54:20
 */

import Mock from 'mockjs'
import User from './user'

Mock.mock('/api/login', 'post', () => { // 此处会劫持/root/login接口，并返回数据
  return User.userInfo // 返回模拟数据
})

export default Mock
